// 这里放置全局的变量
const isDev = '__LOCAL__'
const urlPrefix = isDev ? '/mock/' : '/'

const userLogin = function () {
  let username = window.sessionStorage.getItem('username')
  if (!username || username !== 'admin') {
    // this.$router.push({ path: '/' })
    window.location.hash = '/'
  }
}

export default {
  urlPrefix,
  isDev,
  // 这里放置全局的调用的URL
  URLS: {},
  userLogin
}
